{extend name='admin@public/content'}

{block name="button"}
<!--{if auth("$classuri/add")}-->
<!--<button data-modal='{:url("@$classuri/add")}' data-title="添加等级" class='layui-btn layui-btn-sm layui-btn-primary'>添加等级</button>-->
<!--{/if}-->
<!--{if auth("$classuri/del")}-->
<!--{/if}-->
{/block}

{block name="content"}
<form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get">
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">操作</label>
        <div class="layui-input-inline">
            <select name="field" class='layui-select' lay-search="" style="height: 32px;display: block;">
                <option value='username' {eq name="Think.get.field" value="username" }selected{/eq}>会员名</option>
            </select>
        </div>
        <div class="layui-input-inline">
            <input name="name" value="{$Think.get.name|default=''}" placeholder="请输入要查询的内容" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item layui-inline">
    <label class="layui-form-label">状态</label>
    <div class="layui-input-inline">
    <select name="type" class='layui-select' lay-search="" style="height: 32px;display: block;">
    <option value='' {empty name="Think.get.type" }selected{/empty}>全部状态</option>
    <option value='0' name="Think.get.type" >未审核</option>
    <option value='1' name="Think.get.type" >已审核</option>
    </select>
    </div>
    </div>


    <!--<div class="layui-form-item layui-inline">-->
    <!--<label class="layui-form-label">时间</label>-->
    <!--<div class="layui-input-inline">-->
    <!--<select name="time" class='layui-select' lay-search="" style="height: 32px;display: block;">-->
    <!--<option value='start' {eq name="Think.get.type" value="start" }selected{/eq}>创建时间</option>-->
    <!--<option value='end' {eq name="Think.get.type" value="end" }selected{/eq}>处理时间</option>-->
    <!--</select>-->
    <!--</div>-->
    <!--<div class="layui-input-inline">-->
    <!--<input name="date" id='range-date' value="{$Think.get.date|default=''}"-->
    <!--placeholder="请选择时间" class="layui-input">-->
    <!--</div>-->
    <!--</div>-->
    <div class="layui-form-item layui-inline">
        <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
    </div>
</form>
<form autocomplete="off" onsubmit="return false;" data-auto="true" method="post">
    <!--{if empty($list)}-->
    <p class="help-block text-center well">没 有 记 录 哦！</p>
    <!--{else}-->
    <input type="hidden" value="resort" name="action">
    <table class="layui-table" lay-skin="line">
        <thead>
        <tr>
            <!--<th class='list-table-check-td think-checkbox'>-->
            <!--<input data-auto-none="none" data-check-target='.list-check-box' type='checkbox'>-->
            <!--</th>-->
            <th class='text-left nowrap'>ID</th>
            <th class='text-left nowrap'>用户昵称</th>
            <th class='text-left nowrap'>真实姓名</th>
            <th class='text-left nowrap'>身份证号</th>
            <th class='text-left nowrap'>正面身份证图片</th>
            <th class='text-left nowrap'>反面身份证图片</th>
            <!--<th class='text-left nowrap'>手持身份证图片</th>-->
            <th class='text-left nowrap'>绑定时间</th>
            <th class='text-left nowrap'>操作</th>
            <th class='text-center'></th>
        </tr>
        </thead>
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <!--<td class='list-table-check-td think-checkbox'>-->
            <!--<input class="list-check-box" value='{$vo.id}' type='checkbox'>-->
            <!--</td>-->
            <td class='text-left nowrap'>
                <span class="color-desc">{$vo.id}</span>
            </td>
            <td class='text-left nowrap'>
                <span class="color-desc">{$vo.uid|username|default='暂无用户昵称'}</span>
            </td>
            <td class='text-left nowrap'>
                <span class="color-desc">{$vo.truename|default='暂无真实姓名'}</span>
            </td>

            <td class='text-left nowrap'>
                <span class="color-desc">{$vo.idcard|default='暂无身份证号'}</span>
            </td>
            <td class='text-left nowrap'>
                <p><img data-tips-image src="{$vo['zidcardimg']}" style="width:60px;height:60px;;"></p>
            </td>

            <td class='text-left nowrap'>
                <p><img data-tips-image src="{$vo['fidcardimg']}" style="width:60px;height:60px;;"></p>
            </td>

            <!--<td class='text-left nowrap'>-->
                <!--<p><img data-tips-image src="{$vo['sidcardimg']}" style="width:60px;height:60px;;"></p>-->
            <!--</td>-->

            <td class='text-left nowrap'>
                {$vo.addtime|date="Y-m-d H:i:s"}
            </td>

            <td class='text-left nowrap'>
                {if auth("$classuri/edit")}
                {if condition="$vo.status eq 0"}
                <a data-title="通过"   data-update="{$vo.id}"  data-modal='{:url("@$classuri/idpass")}?id={$vo.id}&status=1&uid={$vo.uid}'>通过</a>
                <a  data-update="{$vo.id}"  data-action=' {:url("$classuri/idpass")}?id={$vo.id}&status=2'>驳回</a>
                {elseif condition="$vo.status eq 1"}
                <span>已通过</span>
                {elseif condition="$vo.status eq 2"}
                <span>已驳回</span>
                {/if}
                {/if}
            </td>
            <td></td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {if isset($page)}<p>{$page|raw}</p>{/if}
    <!--{/if}-->
</form>
{/block}